package com.ygqh.baby.model;

import com.ygqh.baby.ao.DataStatus;
import org.springframework.data.mongodb.core.mapping.Document;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * 接待用户报表
 *
 * @Author: sunshuo
 * @Date: 2019/9/18/018 10:54
 * @Version: 1.0
 */
@Document(collection = "PROCESS_USER_REPORT")
public class ProcessUserReport implements Serializable {

    private static final long serialVersionUID = -8034830521926710414L;

    private String id;

    /**
     * 统计日期
     */
    private Date reportDate;

    /**
     * 用户数
     */
    private Long userCount;

    /**
     * 报表明细
     */
    private List<ProcessUserReportDetail> detailList;

    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 状态
     */
    private DataStatus status = DataStatus.Valid;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public Date getReportDate() {
        return reportDate;
    }

    public void setReportDate(Date reportDate) {
        this.reportDate = reportDate;
    }

    public Long getUserCount() {
        return userCount;
    }

    public void setUserCount(Long userCount) {
        this.userCount = userCount;
    }

    public List<ProcessUserReportDetail> getDetailList() {
        return detailList;
    }

    public void setDetailList(List<ProcessUserReportDetail> detailList) {
        this.detailList = detailList;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public DataStatus getStatus() {
        return status;
    }

    public void setStatus(DataStatus status) {
        this.status = status;
    }

    public static class ProcessUserReportDetail {

        /**
         * 客服id
         */
        private String customerId;

        /**
         * 客服名称
         */
        private String customerName;

        /**
         * 用户数
         */
        private Long userCount;

        public String getCustomerId() {
            return customerId;
        }

        public void setCustomerId(String customerId) {
            this.customerId = customerId;
        }

        public String getCustomerName() {
            return customerName;
        }

        public void setCustomerName(String customerName) {
            this.customerName = customerName;
        }

        public Long getUserCount() {
            return userCount;
        }

        public void setUserCount(Long userCount) {
            this.userCount = userCount;
        }
    }
}
